import win32process
import win32api
import win32con

def printProcess(p):
    handle = win32api.OpenProcess(1024, 0, p)
    print handle.__print__()

proces = win32process.EnumProcesses()
for p in proces:
	printProcess(p)
	
